package com.hezhou.jenkins.my_jenkins_test.controller;

import com.hezhou.jenkins.my_jenkins_test.entity.SysUser;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ---------------------------
 * (UserController) 用户controller
 * ---------------------------
 *
 * @Author: [hezhou]
 * @Date: 2020/4/4
 * @Version: [1.0.1]
 * ---------------------------
 */
@Api("用户Api")
@RestController
public class UserController {

    @Value("${person.last-name}")
    private String name;

    @RequestMapping("/sayHelloaaaa")
    public String sayHello(){
        SysUser sysUser =null;
        sysUser.getId();
        return "hello"+name;
    }
}
